<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserExtensionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_extensions', function (Blueprint $table) {
            $table->increments('id');

            // 昵称 微信 qq 手机 性别 年龄

            $table->unsignedBigInteger('user_id');
            $table->string('nickname', 32)->nullable();
            $table->string('wechat', 64)->nullable();
            $table->string('qq', 12)->nullable();
            $table->string('phone', 11)->nullable();
            $table->tinyInteger('sex')->default(0);
            $table->tinyInteger('status')->default(0);

//            $table->timestamps();





        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('user_extensions');
    }
}
